import { myRequest } from '../utils/request.js'
import { baseURL } from '@/utils/base.js'
// 文件上传
export function uploadAPI(data) {
	return baseURL + '/System/File/uploadImg'
}
//  字典
export function getDictDataAPI(type) {
	return myRequest({
		url: "/app-api/system/dict-data/type",
		data:{
			type
		},
		method: "GET"
	})
}
//  根据参数键名查询参数值
export function valuebykeyAPI(key) {
	return myRequest({
		url: "/app-api/infra/config/get-value-by-key",
		data:{
			key
		},
		method: "GET"
	})
}
//  地区
export function getAreaTreeAPI(data) {
	return myRequest({
		url: "/app-api/system/area/tree",
		data,
		method: "GET"
	})
}


//  获得日历交易订单数量
export function getCalendarCountAPI(data) {
	return myRequest({
		url: "/app-api/member/orderCalendar/get-count",
		data,
		method: "GET"
	})
}
//  日历时间
export function getCalendarTimeAPI(data) {
	return myRequest({
		url: "/app-api/member/orderCalendar/get-time",
		data,
		method: "GET"
	})
}
//  获得今日-下次-评价-选择日期交易订单分页
export function getOrderPageAPI(data) {
	return myRequest({
		url: "/app-api/member/orderCalendar/getOrderPage",
		data,
		method: "GET"
	})
}
//  通过员工id获取员工服务时间
export function getUserTimeAPI(data) {
	return myRequest({
		url: "/app-api/staff/user/getUserTime",
		data,
		method: "POST"
	})
}
